package com.cssl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 账号
     */
    @TableId(type = IdType.AUTO)
    private Integer number;

    /**
     * 密码
     */
    private String cipher;

    /**
     * 姓名
     */
    private String name;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 0:顾客，1:网管
     */
    private Integer job;

    /**
     * 0:关，1:启
     */
    private Integer activate;

    /**
     * 乐观锁版本号
     */
    private Integer version;

    /**
     * 注册时间
     */
    private LocalDateTime registration_time;

    /**
     * 身份证号码
     */
    private byte[] id_number;

    /**
     * 手机号码
     */
    private byte[] phone;

    @TableField(exist = false)
    private int Status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    public User() {
    }

    public User(String cipher, String name, BigDecimal balance, Integer job, Integer activate, Integer version, LocalDateTime registration_time, byte[] id_number, byte[] phone) {
        this.cipher = cipher;
        this.name = name;
        this.balance = balance;
        this.job = job;
        this.activate = activate;
        this.version = version;
        this.registration_time = registration_time;
        this.id_number = id_number;
        this.phone = phone;
    }
}